home *** CD-ROM | disk | FTP | other *** search
/ Dr. Windows 3 / dr win3.zip / dr win3 / VISUALBA / VBCTRL.ZIP / VBPICBTN.TXT < prev    next >
Text File  |  1993-01-01  |  2KB  |  31 lines

  1.  
  2.              Picture Button for Visual Basic by Mark Gamber  1992
  3.  
  4.    One way to create a picture button is to create an array of picture controls
  5. in Visual Basic and apply a different bitmap for each state. The problem with
  6. that method is that it's slow and takes lots of space to implement each button.
  7. This control presents a second method in which a single control contains two
  8. bitmaps or icons, one for each state. In addition, hotkeys are recognized. To
  9. use the control, copy VBPICBTN.VBX to your Visual Basic directory and select
  10. "Add File" from Visual Basic's "File" menu. Select "VBPICBTN.VBX" from the list
  11. of files presented. You should see a "picture" appear in your toolbox, in which
  12. case you're ready to go.
  13.  
  14.    Most events, properties and methods are the same as a normal pushbutton.
  15. Using the "PicUp" and "PicDown" properties, you may apply a bitmap or icon for
  16. the button, giving a "pressed" and "raised" appearance. The "Stretch" property
  17. determines if a bitmap retains it's original size (default) or is stretched or
  18. compressed to match the control size. Although a caption is not displayed, you
  19. may enter a caption in order to set a "hotkey" for the button. An actual
  20. caption for the control must be part of the bitmap or icon applied.
  21.  
  22.  
  23.    This is free software for any and all given two conditions:
  24.  
  25. 1. Info pertaining to the author (me!) may NOT be changed.
  26. 2. I'm not liable.
  27.  
  28.    Bugs, questions and suggestions may be sent E-Mail to PCA MarkG on America
  29. Online. I don't answer the phone, letters or BBS mail of any sort.
  30.  
  31.